<%@page contentType="text/html" pageEncoding="UTF-8" %>
<%@taglib tagdir="/WEB-INF/tags" prefix="koor" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/HTML4/strict.dtd">

<html>
    <head>
        <koor:bootstrap/>
        <meta http-equiv="Content-Type" content="text/html; charset=utf8">
        <script type="text/javascript" src="js/bootstrap-alert.js" ></script> 
        <script type="text/javascript" src="js/jquery.validation.js" ></script> 
        <script type="text/javascript" src="js/form_validate.js">  </script>
        <script type="text/javascript" src="js/jquery-1.7.2.js">  </script>
        <title>Koor :: Добавление студента</title>
    </head>
    <body>

        <koor:top/>
        <koor:navtabs number="2"/>

        <div class="span7 offset2 well">

            <div style="margin-bottom: 20px" class="center_title">
                <h2>Добавление студента</h2>
            </div>

            <form class="form-horizontal" method="POST" action="main?action=student.save"
                  onsubmit="return organizationVal(this);">
                <fieldset>

                    <div id="firstnameDiv" class="control-group">
                        <label class="control-label" for="firstname">Фамилия</label>
                        <div class="controls">
                            <input class="span4" type="text" id="firstname" name="firstname" oninput="fieldIsFilling(this)">
                            <span class="help-inline" ></span>
                        </div>
                    </div>

                    <div id="secondnameDiv" class="control-group">
                        <label class="control-label" for="secondname">Имя</label>
                        <div class="controls">
                            <input class="span4" type="text" id="secondname" name="secondname" oninput="fieldIsFilling(this)">
                            <span class="help-inline" ></span>
                        </div>
                    </div>

                    <div id="patronymicDiv" class="control-group">
                        <label class="control-label" for="patronymic">Отчество</label>
                        <div class="controls">
                            <input class="span4" type="text" id="patronymic" name="patronymic">
                            <span class="help-inline" ></span>
                        </div>
                    </div>

                    <div id="cardDiv" class="control-group">
                        <label class="control-label" for="card">Номер студенческого билета</label>
                        <div class="controls">
                            <input class="span4" type="text" id="card" name="card" oninput="fieldIsFilling(this)">
                            <span class="help-inline" ></span>
                        </div>
                    </div>

                </fieldset>
                <div class="center_title">
                    <input class="btn btn-primary" type="submit" name="saveButton" value="Добавить">
                    <a href="main?action=student.list" class="btn" name="cancelButton">Отменить</a>
                </div>

            </form>

        </div>
    </body>
</html>
